/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pos.Driving.Dashboard;

/**
 *
 * @author Administrator
 */
public class SpeedDesc {
    public double Speed,SpeedLimit,SpeedTarget;

    public SpeedDesc(double Speed, double SpeedLimit, double SpeedTarget) {
        this.Speed = Speed;
        this.SpeedLimit = SpeedLimit;
        this.SpeedTarget = SpeedTarget;
    }
    
    public boolean isOverSpeed(){
        if ((int)Speed > (int) SpeedLimit)
            return true;
        else
            return false;
    }
}
